package cn.sunan.org.domain;

import cn.sunan.basic.config.domain.BesaDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
public class Department  extends BesaDomain implements Serializable {

    private String sn;
    private String name;
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Employee manager; //管理员  null
    private Department parent; //上级部门  null

    //新增部门 -当儿子
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
        List<Department> children = new ArrayList<>();

}
